@charset "UTF-8";
// 截取文本text-overflow
@mixin singleline-ellipsis($substract:0) {
  //`$substract`单位为%
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100% - $substract;
}
%singleline-ellipsis {
  @include singleline-ellipsis;
}

// 鼠标指向 a链接变色
%tra-hover{
  &:hover {
    a {
      color: $brand-warning;
      //@include transition(all 0.3s ease 0s);
    }
  }
}

// 块背景
%block-bg{
  background-color: #fff;
  @include box-shadow(0 1px 3px rgba($gray-base,.3));
}
